package ${package.Entity};

<#list table.importPackages as pkg>
import ${pkg};
</#list>
import java.io.Serial;
<#if entityLombokModel>
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
</#if>

/**
* <p>
* ${table.comment!}
* </p>
* @author ${author}
* @since ${date}
*/
<#if entityLombokModel>
@Data
    <#if superEntityClass??>
@EqualsAndHashCode(callSuper = true)
    <#else>
@EqualsAndHashCode(callSuper = false)
    </#if>
</#if>
public class ${entity} implements Serializable {
    @Serial
    private static final long serialVersionUID = -5809782578272943999L; // 自动生成
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>

    <#if field.comment!?length gt 0>
    /**
    * ${field.comment}
    */
    </#if>
    private ${field.propertyType} ${field.propertyName};
</#list>
}
